package net.lainiao.morethread.Chapter1.demo3;

/**
 * Created by Administrator on 2017/2/27.
 */
public class Main {
    public static void main(String[] args) {
        DataSourceLoader dataSourceLoader=new DataSourceLoader();
        Thread thread=new Thread(dataSourceLoader);
        NetworkConnectionsLoader networkConnectionsLoader=new NetworkConnectionsLoader();
        Thread thread1=new Thread(networkConnectionsLoader);
        thread.start();
        try {
            thread.join(1000);
            thread1.start();
            thread1.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Configurartin finisthed");
    }
}
